package com.moyu.article.domain.board.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @Author 赵彦博
 * @Date 2025/3/29 21:19
 */
@Data
public class BoardUpdateDTO {

    private String boardId;

    @NotBlank(message = "标签名称不能为空")
    @Size(min = 2, max = 50, message = "标签名称长度必须在2到50个字符之间")
    private String boardName;

    private String description;

    private Integer sort;

    @NotNull(message = "状态不能为空")
    private Integer state;

}
